.class public Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;
.super Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;
.source "LogNetDiskHolder.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method private a(Lcom/estrongs/android/pop/app/log/d;ILandroid/view/View;)V
    .locals 3

    .line 10
    iget-object v0, p1, Lcom/estrongs/android/pop/app/log/d;->j:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/h40;

    const v0, 0x7f09053d

    .line 11
    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 12
    new-instance v1, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder$a;

    invoke-direct {v1, p0, p2, p1}, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder$a;-><init>(Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;Les/h40;Lcom/estrongs/android/pop/app/log/d;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 14
    invoke-static {p2}, Les/rj;->e(Lcom/estrongs/fs/g;)I

    move-result p1

    .line 15
    invoke-static {p2}, Les/rj;->k(Lcom/estrongs/fs/g;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 v1, 0x1

    .line 16
    invoke-virtual {p2}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v0, p2, p1, v1}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;IZ)V

    goto :goto_0

    .line 17
    :cond_0
    invoke-static {p1, v0, p2}, Lcom/estrongs/android/icon/loader/c;->a(ILandroid/widget/ImageView;Lcom/estrongs/fs/g;)V

    :goto_0
    const p1, 0x7f090d23

    .line 18
    invoke-virtual {p3, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 19
    invoke-virtual {p2}, Les/h40;->getName()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 p1, 0x0

    .line 20
    invoke-virtual {p3, p1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->a(Landroid/view/View;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->j:Landroid/widget/LinearLayout;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setOrientation(I)V

    return-void
.end method

.method public a(Ljava/lang/Object;)V
    .locals 5

    .line 3
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->a(Ljava/lang/Object;)V

    .line 4
    check-cast p1, Lcom/estrongs/android/pop/app/log/d;

    .line 5
    iget-object v0, p1, Lcom/estrongs/android/pop/app/log/d;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x4

    if-le v0, v1, :cond_0

    const/4 v0, 0x4

    goto :goto_0

    :cond_0
    iget-object v0, p1, Lcom/estrongs/android/pop/app/log/d;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    const/4 v2, 0x1

    if-eq v0, v2, :cond_4

    const/4 v3, 0x2

    if-eq v0, v3, :cond_3

    const/4 v4, 0x3

    if-eq v0, v4, :cond_2

    if-eq v0, v1, :cond_1

    goto :goto_1

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->o:Landroid/view/View;

    invoke-direct {p0, p1, v4, v0}, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;->a(Lcom/estrongs/android/pop/app/log/d;ILandroid/view/View;)V

    .line 7
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->n:Landroid/view/View;

    invoke-direct {p0, p1, v3, v0}, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;->a(Lcom/estrongs/android/pop/app/log/d;ILandroid/view/View;)V

    .line 8
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->m:Landroid/view/View;

    invoke-direct {p0, p1, v2, v0}, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;->a(Lcom/estrongs/android/pop/app/log/d;ILandroid/view/View;)V

    :cond_4
    const/4 v0, 0x0

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->l:Landroid/view/View;

    invoke-direct {p0, p1, v0, v1}, Lcom/estrongs/android/pop/app/log/viewHolder/LogNetDiskHolder;->a(Lcom/estrongs/android/pop/app/log/d;ILandroid/view/View;)V

    :goto_1
    return-void
.end method

.method protected d()Landroid/view/View;
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogViewHolder;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c025b

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogViewHolder;->a:Landroid/content/Context;

    .line 3
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0700fc

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    iget-object v4, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogViewHolder;->a:Landroid/content/Context;

    .line 4
    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogViewHolder;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0700b7

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    const/16 v2, 0x13

    .line 6
    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 7
    iget-object v2, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-object v0
.end method

.method protected e()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/log/viewHolder/LogMediaBaseViewHolder;->j:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    return-void
.end method
